from django.views.decorators.csrf import csrf_exempt
from Apis.response import Response


@csrf_exempt
def index(request):
    res = Response()
    return res.ok("Hello World")


@csrf_exempt
def test(request):
    get_dict = request.GET
    post_dict = request.POST

    res = Response()
    res.output['get'] = get_dict
    res.output['post'] = post_dict

    return res.ok('test!')
